﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using V5_BLL;
using V5_Common;

namespace V5_EShop._Template.Default.Member
{
    public partial class index : BasicPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.check_member_login())
            {
                Response.Redirect("/login.aspx?returnurl=" + HTTPS.GetCurrentUrl());
            }
            if (!this.IsPostBack)
            {
                Bind_rpList();
            }
        }

        private void Bind_rpList()
        {
            Repeater rp = (Repeater)this.FindControl("rpOrderList");
            if (rp != null)
            {
                string strWhere = "";
                strWhere = " memberid=" + user.ID;
                DataTable dt = new BLLProductOrder().GetList(10, strWhere, " OrderID desc").Tables[0];
                rp.DataSource = dt;
                rp.DataBind();
            }
        }
    }
}
